
<?php
$category = $this->category;
$total = $this->total;
$ads = $this->ads;
?>
<?if ($this->status==1):?>
<script>
    mobileMessage('Ваше объявление добавлено');

</script>
<?endif;?>
<ul data-role="pagination" style="z-index: 1000;">
	<li class="ui-pagination-prev"><a class="for-mobile-paginator"  data-direction="slide" href="<?=$this->leftrange?>">Prev</a></li>
	<li class="ui-pagination-next"><a class="for-mobile-paginator"  data-direction="slide" href="<?=$this->rightrange?>">Next</a></li>
</ul>
<p style="margin-bottom: 20px;">Объявлений в рубрике : <b><?php echo $total ?></b></p>
<ul data-role="listview"  data-inset="true" >
        <?php foreach ($ads as $ad): ?>
            <li>

                <div style="float:right;margin-right: 30px;">[<?php echo $ad['date']->format('m/d/Y') ?>]</div>
                 <div style="padding-left: 20px;">
                   Автор: <i><?php echo $this->escape($ad['author']); ?></i> (<a href='mailto:<?php echo $this->escape($ad['email']); ?>'><?php echo $this->escape($ad['email']); ?></a>)
                   <br>
                    Телефон: <span style="color: #0088CC; "><?php echo $this->escape($ad['phone']); ?></span>
                 </div>
                <div style="min-height: 1px;margin-bottom: 20px;clear: both;"></div>
                <p style="text-indent: 20px;white-space: normal;"><?php echo $ad['content']; ?></p>

            </li>

        <?php endforeach; ?>

 </ul>